<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCaseInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('case_infos', function (Blueprint $table) {
            $table->increments('id');
            $table->text('case_source')->nullable()->comment('案件来源');
            $table->integer('users_id');
            $table->timestamp('case_time')->comment('调解日期');
            $table->text('parties')->nullable()->comment('双方当事人基本情况');
            $table->text('parties_tel')->nullable()->comment('双方当事人联系方式');
            $table->integer('code')->nullable()->comment('评分');
            $table->integer('case_type')->nullable()->comment('案件类型');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('case_infos');
    }
}
